@use "design-system";

.shield-plan-page {
  max-width: 600px;

  .shield-plan-page__error-content {
    margin-top: 120px;
  }


  .shield-plan-page__plans {
    grid-template-columns: 1fr 1fr;
  }

  .shield-plan-page__plan {
    border: 1px solid transparent;
    position: relative;
    padding-top: 16px;
    padding-bottom: 16px;
    column-gap: 16px;

    @include design-system.screen-sm-max {
      padding-top: 8px;
      padding-bottom: 8px;
      column-gap: 8px;
    }

    .shield-plan-page__radio {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 1px solid var(--color-border-default);
    }

    .shield-plan-page__radio-label {
      flex: 1;
    }

    .shield-plan-page__save-badge {
      position: absolute;
      right: 10px;
      top: -8px;
      height: 20px;
      background-color: var(--color-primary-default);
    }

    .shield-plan-page__plan-price {
      @include design-system.screen-sm-max {
        font-size: 16px;
      }
    }
  }

  .shield-plan-page__plan--selected {
    border-color: var(--color-primary-default);

    .shield-plan-page__radio {
      border-color: var(--color-primary-default);
      border-width: 2px;

      &::after {
        content: '';
        width: 12px;
        height: 12px;
        background-color: var(--color-primary-default);
        border-radius: 50%;
      }
    }
  }

  .shield-plan-page__group {
    .shield-plan-page__row {
      margin-bottom: 1px;

      &:first-of-type {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
      }

      &:last-of-type {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        margin-bottom: 0;
      }
    }
  }

  .shield-plan-page__footer {
    border-top: 1px solid var(--color-border-muted);
  }
}

.shield-payment-modal {
  .payment-method-item {
    position: relative;

    &:not(.payment-method-item--selected) {
      &:hover {
        background: var(--color-background-default-hover);
      }
    }

    &__selected-indicator {
      width: 4px;
      height: calc(100% - 8px);
      position: absolute;
      top: 4px;
      left: 4px;
    }
  }
}
